'''
UNIT INFO
Setup for Knobjex (creating executables)
Steps to perform: prepare code, empty dirs and run setup.py

PREPARE CODE:
- at: about ...
    update the version-number and date

EMPTY DIRS:
-partially empty dirs in pyknow:
    -build and
    -dist (update directories: database, icons, other_files and help_info)

RUN IT LIKE:
-open console (command-prompt/ dos-window)
-change directory to the dir where setup.py is located
-type command: python setup.py py2exe
-enter and wait for all the stuff that is output

CODE-CHANGES:
-the email-package is not auto-handled by py2exe and therefore added as option
to be added 'manually' by py2exe.
'''

from distutils.core import setup
import py2exe

mainfilest = 'M:\\EigThuis\\Bestanden\\Leuk\\Hobbies\\Programmeren\\Python\\MijnCode\\PyKnow\\main_startup.py'
iconfilest = 'M:\\EigThuis\\Bestanden\\Leuk\\Hobbies\\Programmeren\\Python\\MijnCode\\PyKnow\\icons\\kjx_logo.ico'
##setup(console=['hello.py'])

##setup(windows=[mainfilest],
##        options = {"py2exe":{"includes":"decimal"}})

setup(windows=  [
                    {
                        "script": mainfilest,
                        "icon_resources": [(1, iconfilest)]
                    }
                ],
##                options = {"py2exe":{"includes":"decimal"}})
                options = {"py2exe":{"includes":"decimal",
                                        "packages":["email"]}})
